import java.net.ServerSocket;
import java.net.Socket;

public class main {

            public static void main(String[] args) throws Exception{

                ServerSocket serverSocket = new ServerSocket(10001);

                while (true) {

                    Socket client = serverSocket.accept();

                    new Thread(new ServerThread(client)).start();

                }

            }

        }




